<?php

namespace Biz\pockets\constInterface;

interface MjiaActivityConfig
{
    #活动平台
    const ACTIVITY_PLATFORM_WECHAT = 1;
    const ACTIVITY_PLATFORM_DEFAULT = 0;

    #活动时间
    const ACTIVITY_START_TIME = '2022-06-03 23:59:59';
    const ACTIVITY_END_TIME = '2022-06-10 23:59:59';

    #中奖概率
    const ACTIVITY_WINNING_ODDS = 25;

    #中奖用户注册时间线
    const ACTIVITY_MEMBER_ADDTIME_GAP = '2022-06-04 00:00:00';

    #每日奖品数量
    const DAY_PRIZE_COUNT = [
        //测试
        '2022-06-02' => 5,
        '2022-06-03' => 5,  
        //正式
        '2022-06-04' => 5,
        '2022-06-05' => 5,
        '2022-06-06' => 8,
        '2022-06-07' => 8,
        '2022-06-08' => 10,
        '2022-06-09' => 8,
        '2022-06-10' => 40,
    ];

    //错误码
    #活动未开始
    const ERROR_CODE_ACTIVITY_NOT_START = 30000;
    #活动已结束
    const ERROR_CODE_ACTIVITY_END = 30001;
    #用户注册时间不满足中奖条件
    const ERROR_CODE_USER_REGISTER_TIME = 30002;
    #内部员工
    const ERROR_CODE_INNER_USER = 30003;
    #b1用户
    const ERROR_CODE_USER_B1 = 30004;
    #批量注册用户
    const ERROR_CODE_USER_BATCH_REGISTER = 30005;
    #未绑定手机号
    const ERROR_CODE_USER_NOT_BOUND_PHONE = 30006;
    #142测试号
    const ERROR_CODE_USER_TEST = 30007;
    #设备黑名单
    const ERROR_CODE_DID_BLACK = 30008;
    #短时间内重复请求
    const ERROR_CODE_REPEAT_REQUEST = 30009;
    #设备已中奖
    const ERROR_CODE_DEV_HAS_WINNING = 30010;
    #用户已中奖
    const ERROR_CODE_USER_HAS_WINNING = 30011;
    #中奖事务处理失败
    const ERROR_CODE_WINING_TRANS_FAIL = 30012;
    #非法请求
    const ERROR_CODE_ILLEGAL_REQUEST = 30013;

    //奖品图像
    const PRIZE_IMAGES = [
        1 => 'https://img.haohaozhu.cn/Op-imageShow/f594730g80j402L00rcgz75?iv=1',
        2 => 'https://img.haohaozhu.cn/Op-imageShow/1b0be30g80j40GN00rcgz75?iv=1',
        3 => 'https://img.haohaozhu.cn/Op-imageShow/1b0be30g80j40GN00rcgz75?iv=1',
    ];

    //获奖品图像
    const WIN_IMAGES = [
        1 => 'https://img.haohaozhu.cn/Op-imageShow/3090430l40r60SP00rcu59u?iv=1', //音箱
        2 => 'https://img.haohaozhu.cn/Op-imageShow/5634c30l40r60Tm00rcmpol?iv=1', //烟感
        3 => 'https://img.haohaozhu.cn/Op-imageShow/1927630l40r60NL00rcmpoj?iv=1', //天然气
    ];


    const WINNING_PRIZE_MSG_LINK = '/activity/mi-smart-kitchen/address?winning_record_id=1';


}